Optimal. Leaf size=175 \[ \frac {x}{2 b}-\frac {a^{3/4} \tanh ^{-1}\left (\frac {\sqrt {\sqrt {a}-\sqrt {b}} \tanh (c+d x)}{\sqrt [4]{a}}\right )}{2 \sqrt {\sqrt {a}-\sqrt {b}} b^{3/2} d}+\frac {a^{3/4} \tanh ^{-1}\left (\frac {\sqrt {\sqrt {a}+\sqrt {b}} \tanh (c+d x)}{\sqrt [4]{a}}\right )}{2 \sqrt {\sqrt {a}+\sqrt {b}} b^{3/2} d}-\frac {1}{4 b d (1-\tanh (c+d x))}+\frac {1}{4 b d (1+\tanh (c+d x))} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.18, antiderivative size = 175, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 5, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.208, Rules used = {3296, 1301,
213, 1144, 214} \begin {gather*} -\frac {a^{3/4} \tanh ^{-1}\left (\frac {\sqrt {\sqrt {a}-\sqrt {b}} \tanh (c+d x)}{\sqrt [4]{a}}\right )}{2 b^{3/2} d \sqrt {\sqrt {a}-\sqrt {b}}}+\frac {a^{3/4} \tanh ^{-1}\left (\frac {\sqrt {\sqrt {a}+\sqrt {b}} \tanh (c+d x)}{\sqrt [4]{a}}\right )}{2 b^{3/2} d \sqrt {\sqrt {a}+\sqrt {b}}}-\frac {1}{4 b d (1-\tanh (c+d x))}+\frac {1}{4 b d (\tanh (c+d x)+1)}+\frac {x}{2 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 213
Rule 214
Rule 1144
Rule 1301
Rule 3296
Rubi steps
\begin {align*} \int \frac {\sinh ^6(c+d x)}{a-b \sinh ^4(c+d x)} \, dx &=\frac {\text {Subst}\left (\int \frac {x^6}{\left (1-x^2\right )^2 \left (a-2 a x^2+(a-b) x^4\right )} \, dx,x,\tanh (c+d x)\right )}{d}\\ &=\frac {\text {Subst}\left (\int \left (-\frac {1}{4 b (-1+x)^2}-\frac {1}{4 b (1+x)^2}-\frac {1}{2 b \left (-1+x^2\right )}+\frac {a x^2}{b \left (a-2 a x^2+(a-b) x^4\right )}\right ) \, dx,x,\tanh (c+d x)\right )}{d}\\ &=-\frac {1}{4 b d (1-\tanh (c+d x))}+\frac {1}{4 b d (1+\tanh (c+d x))}-\frac {\text {Subst}\left (\int \frac {1}{-1+x^2} \, dx,x,\tanh (c+d x)\right )}{2 b d}+\frac {a \text {Subst}\left (\int \frac {x^2}{a-2 a x^2+(a-b) x^4} \, dx,x,\tanh (c+d x)\right )}{b d}\\ &=\frac {x}{2 b}-\frac {1}{4 b d (1-\tanh (c+d x))}+\frac {1}{4 b d (1+\tanh (c+d x))}+\frac {\left (a \left (\sqrt {a}+\sqrt {b}\right )\right ) \text {Subst}\left (\int \frac {1}{-a-\sqrt {a} \sqrt {b}+(a-b) x^2} \, dx,x,\tanh (c+d x)\right )}{2 b^{3/2} d}+\frac {\left (a \left (1-\frac {\sqrt {a}}{\sqrt {b}}\right )\right ) \text {Subst}\left (\int \frac {1}{-a+\sqrt {a} \sqrt {b}+(a-b) x^2} \, dx,x,\tanh (c+d x)\right )}{2 b d}\\ &=\frac {x}{2 b}-\frac {a^{3/4} \tanh ^{-1}\left (\frac {\sqrt {\sqrt {a}-\sqrt {b}} \tanh (c+d x)}{\sqrt [4]{a}}\right )}{2 \sqrt {\sqrt {a}-\sqrt {b}} b^{3/2} d}+\frac {a^{3/4} \tanh ^{-1}\left (\frac {\sqrt {\sqrt {a}+\sqrt {b}} \tanh (c+d x)}{\sqrt [4]{a}}\right )}{2 \sqrt {\sqrt {a}+\sqrt {b}} b^{3/2} d}-\frac {1}{4 b d (1-\tanh (c+d x))}+\frac {1}{4 b d (1+\tanh (c+d x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.66, size = 158, normalized size = 0.90 \begin {gather*} \frac {2 \sqrt {b} (c+d x)+\frac {2 a \text {ArcTan}\left (\frac {\left (\sqrt {a}-\sqrt {b}\right ) \tanh (c+d x)}{\sqrt {-a+\sqrt {a} \sqrt {b}}}\right )}{\sqrt {-a+\sqrt {a} \sqrt {b}}}+\frac {2 a \tanh ^{-1}\left (\frac {\left (\sqrt {a}+\sqrt {b}\right ) \tanh (c+d x)}{\sqrt {a+\sqrt {a} \sqrt {b}}}\right )}{\sqrt {a+\sqrt {a} \sqrt {b}}}-\sqrt {b} \sinh (2 (c+d x))}{4 b^{3/2} d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 1.69, size = 206, normalized size = 1.18
method | result | size |
risch | \(\frac {x}{2 b}-\frac {{\mathrm e}^{2 d x +2 c}}{8 b d}+\frac {{\mathrm e}^{-2 d x -2 c}}{8 b d}+\left (\munderset {\textit {\_R} =\RootOf \left (\left (256 a \,b^{6} d^{4}-256 b^{7} d^{4}\right ) \textit {\_Z}^{4}-32 a^{2} b^{3} d^{2} \textit {\_Z}^{2}+a^{3}\right )}{\sum }\textit {\_R} \ln \left ({\mathrm e}^{2 d x +2 c}+\left (-\frac {128 b^{4} d^{3}}{a}+\frac {128 b^{5} d^{3}}{a^{2}}\right ) \textit {\_R}^{3}+\left (32 b^{2} d^{2}-\frac {32 d^{2} b^{3}}{a}\right ) \textit {\_R}^{2}+16 b d \textit {\_R} -\frac {2 a}{b}-1\right )\right )\) | \(162\) |
derivativedivides | \(\frac {\frac {1}{2 b \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{2}}-\frac {1}{2 b \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}+\frac {\ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}{2 b}-\frac {a \left (\munderset {\textit {\_R} =\RootOf \left (a \,\textit {\_Z}^{8}-4 a \,\textit {\_Z}^{6}+\left (6 a -16 b \right ) \textit {\_Z}^{4}-4 a \,\textit {\_Z}^{2}+a \right )}{\sum }\frac {\left (\textit {\_R}^{4}-\textit {\_R}^{2}\right ) \ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-\textit {\_R} \right )}{\textit {\_R}^{7} a -3 \textit {\_R}^{5} a +3 \textit {\_R}^{3} a -8 \textit {\_R}^{3} b -\textit {\_R} a}\right )}{b}-\frac {1}{2 b \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{2}}-\frac {1}{2 b \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}-\frac {\ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}{2 b}}{d}\) | \(206\) |
default | \(\frac {\frac {1}{2 b \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )^{2}}-\frac {1}{2 b \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}+\frac {\ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )+1\right )}{2 b}-\frac {a \left (\munderset {\textit {\_R} =\RootOf \left (a \,\textit {\_Z}^{8}-4 a \,\textit {\_Z}^{6}+\left (6 a -16 b \right ) \textit {\_Z}^{4}-4 a \,\textit {\_Z}^{2}+a \right )}{\sum }\frac {\left (\textit {\_R}^{4}-\textit {\_R}^{2}\right ) \ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-\textit {\_R} \right )}{\textit {\_R}^{7} a -3 \textit {\_R}^{5} a +3 \textit {\_R}^{3} a -8 \textit {\_R}^{3} b -\textit {\_R} a}\right )}{b}-\frac {1}{2 b \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )^{2}}-\frac {1}{2 b \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}-\frac {\ln \left (\tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-1\right )}{2 b}}{d}\) | \(206\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 1441 vs.
\(2 (127) = 254\).
time = 0.44, size = 1441, normalized size = 8.23 \begin {gather*} \frac {4 \, d x \cosh \left (d x + c\right )^{2} - \cosh \left (d x + c\right )^{4} - 4 \, \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{3} - \sinh \left (d x + c\right )^{4} + 2 \, {\left (2 \, d x - 3 \, \cosh \left (d x + c\right )^{2}\right )} \sinh \left (d x + c\right )^{2} - 2 \, {\left (b d \cosh \left (d x + c\right )^{2} + 2 \, b d \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + b d \sinh \left (d x + c\right )^{2}\right )} \sqrt {\frac {{\left (a b^{3} - b^{4}\right )} d^{2} \sqrt {\frac {a^{3}}{{\left (a^{2} b^{5} - 2 \, a b^{6} + b^{7}\right )} d^{4}}} + a^{2}}{{\left (a b^{3} - b^{4}\right )} d^{2}}} \log \left (a^{2} \cosh \left (d x + c\right )^{2} + 2 \, a^{2} \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + a^{2} \sinh \left (d x + c\right )^{2} + 2 \, {\left (a^{2} b^{2} - a b^{3}\right )} d^{2} \sqrt {\frac {a^{3}}{{\left (a^{2} b^{5} - 2 \, a b^{6} + b^{7}\right )} d^{4}}} - a^{2} + 2 \, {\left ({\left (a b^{4} - b^{5}\right )} d^{3} \sqrt {\frac {a^{3}}{{\left (a^{2} b^{5} - 2 \, a b^{6} + b^{7}\right )} d^{4}}} - a^{2} b d\right )} \sqrt {\frac {{\left (a b^{3} - b^{4}\right )} d^{2} \sqrt {\frac {a^{3}}{{\left (a^{2} b^{5} - 2 \, a b^{6} + b^{7}\right )} d^{4}}} + a^{2}}{{\left (a b^{3} - b^{4}\right )} d^{2}}}\right ) + 2 \, {\left (b d \cosh \left (d x + c\right )^{2} + 2 \, b d \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + b d \sinh \left (d x + c\right )^{2}\right )} \sqrt {\frac {{\left (a b^{3} - b^{4}\right )} d^{2} \sqrt {\frac {a^{3}}{{\left (a^{2} b^{5} - 2 \, a b^{6} + b^{7}\right )} d^{4}}} + a^{2}}{{\left (a b^{3} - b^{4}\right )} d^{2}}} \log \left (a^{2} \cosh \left (d x + c\right )^{2} + 2 \, a^{2} \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + a^{2} \sinh \left (d x + c\right )^{2} + 2 \, {\left (a^{2} b^{2} - a b^{3}\right )} d^{2} \sqrt {\frac {a^{3}}{{\left (a^{2} b^{5} - 2 \, a b^{6} + b^{7}\right )} d^{4}}} - a^{2} - 2 \, {\left ({\left (a b^{4} - b^{5}\right )} d^{3} \sqrt {\frac {a^{3}}{{\left (a^{2} b^{5} - 2 \, a b^{6} + b^{7}\right )} d^{4}}} - a^{2} b d\right )} \sqrt {\frac {{\left (a b^{3} - b^{4}\right )} d^{2} \sqrt {\frac {a^{3}}{{\left (a^{2} b^{5} - 2 \, a b^{6} + b^{7}\right )} d^{4}}} + a^{2}}{{\left (a b^{3} - b^{4}\right )} d^{2}}}\right ) + 2 \, {\left (b d \cosh \left (d x + c\right )^{2} + 2 \, b d \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + b d \sinh \left (d x + c\right )^{2}\right )} \sqrt {-\frac {{\left (a b^{3} - b^{4}\right )} d^{2} \sqrt {\frac {a^{3}}{{\left (a^{2} b^{5} - 2 \, a b^{6} + b^{7}\right )} d^{4}}} - a^{2}}{{\left (a b^{3} - b^{4}\right )} d^{2}}} \log \left (a^{2} \cosh \left (d x + c\right )^{2} + 2 \, a^{2} \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + a^{2} \sinh \left (d x + c\right )^{2} - 2 \, {\left (a^{2} b^{2} - a b^{3}\right )} d^{2} \sqrt {\frac {a^{3}}{{\left (a^{2} b^{5} - 2 \, a b^{6} + b^{7}\right )} d^{4}}} - a^{2} + 2 \, {\left ({\left (a b^{4} - b^{5}\right )} d^{3} \sqrt {\frac {a^{3}}{{\left (a^{2} b^{5} - 2 \, a b^{6} + b^{7}\right )} d^{4}}} + a^{2} b d\right )} \sqrt {-\frac {{\left (a b^{3} - b^{4}\right )} d^{2} \sqrt {\frac {a^{3}}{{\left (a^{2} b^{5} - 2 \, a b^{6} + b^{7}\right )} d^{4}}} - a^{2}}{{\left (a b^{3} - b^{4}\right )} d^{2}}}\right ) - 2 \, {\left (b d \cosh \left (d x + c\right )^{2} + 2 \, b d \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + b d \sinh \left (d x + c\right )^{2}\right )} \sqrt {-\frac {{\left (a b^{3} - b^{4}\right )} d^{2} \sqrt {\frac {a^{3}}{{\left (a^{2} b^{5} - 2 \, a b^{6} + b^{7}\right )} d^{4}}} - a^{2}}{{\left (a b^{3} - b^{4}\right )} d^{2}}} \log \left (a^{2} \cosh \left (d x + c\right )^{2} + 2 \, a^{2} \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + a^{2} \sinh \left (d x + c\right )^{2} - 2 \, {\left (a^{2} b^{2} - a b^{3}\right )} d^{2} \sqrt {\frac {a^{3}}{{\left (a^{2} b^{5} - 2 \, a b^{6} + b^{7}\right )} d^{4}}} - a^{2} - 2 \, {\left ({\left (a b^{4} - b^{5}\right )} d^{3} \sqrt {\frac {a^{3}}{{\left (a^{2} b^{5} - 2 \, a b^{6} + b^{7}\right )} d^{4}}} + a^{2} b d\right )} \sqrt {-\frac {{\left (a b^{3} - b^{4}\right )} d^{2} \sqrt {\frac {a^{3}}{{\left (a^{2} b^{5} - 2 \, a b^{6} + b^{7}\right )} d^{4}}} - a^{2}}{{\left (a b^{3} - b^{4}\right )} d^{2}}}\right ) + 4 \, {\left (2 \, d x \cosh \left (d x + c\right ) - \cosh \left (d x + c\right )^{3}\right )} \sinh \left (d x + c\right ) + 1}{8 \, {\left (b d \cosh \left (d x + c\right )^{2} + 2 \, b d \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + b d \sinh \left (d x + c\right )^{2}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 11.24, size = 2191, normalized size = 12.52 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________